package com.cyclinggle.cloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.cyclinggle.cloud.service.impl.UserServiceFallback;

@FeignClient(name = "sc-provider-service", fallback = UserServiceFallback.class)
public interface IUserService {
	@GetMapping("/users")
	String getUser(@RequestParam("username") String username);
}
